@model HogBlog.Models.Entry

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Entry</legend>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">Content</div>
    <div class="display-field">@Model.Content</div>

    <div class="display-label">Status</div>
    <div class="display-field">@Model.Status</div>

    <div class="display-label">PubDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.PubDate)</div>

    <div class="display-label">Author</div>
    <div class="display-field">@Model.Author</div>

    <div class="display-label">Image</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Image).ToString()</div>

    <div class="display-label">TagList</div>
    <div class="display-field">@(Model.TagList == null ? "None" : Model.TagList.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.EntryId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


